package cn.itcast.hotel.service;

import cn.itcast.hotel.pojo.Hotel;
import cn.itcast.hotel.pojo.PageResult;
import cn.itcast.hotel.pojo.RequestParams;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface IHotelService extends IService<Hotel> {

    PageResult searchByparam(RequestParams params) throws IOException;

    Map<String, List<String>> filters(RequestParams params) throws IOException;

    void saveOrUpdateEs(String hotel) throws IOException;

    void deleteEs(String id) throws IOException;

    List<String> getSuggestion(String prefix);
}
